﻿/*----------------------------------------------------------------
  //Copyright (C) 2012 赵国伟
  //文件功能描述：品牌管理
  //创建人：赵国伟
  //生成时间：2012/03/17 16:15:00
//----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Shopping.Common;
using Shopping.Model;
using Shopping.BLL;

public partial class Manage_BrandsManage : BaseManagePage
{

    protected string CheckOptionOfCategories = "";

    protected string KeyWords; //搜索关键字；
    protected string status; //查询状态；
    protected int Sorts; //排序值；
    protected AsPage p; //分页对象；
    
    protected List<BrandInfo> listOfBrands; //品牌信息；

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            KeyWords = Utility.G("KeyWords");
            status = Utility.G("Status");
            Sorts = Utility.G<int>("Sorts");
            p = new AsPage();
            p.CurPage = Utility.G<int>("CurPage");
            if (p.CurPage <= 0)
                p.CurPage = 1;
            CheckOptionOfCategories = CategoriesManage.GetEndNodeCategoriesToCheckOption(false, "chkCategory", "", 2);
            BrandsManage bllBrand = new BrandsManage();
            listOfBrands = bllBrand.QueryListAsPage(KeyWords, status, Sorts, p);
        }
    }
}